<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PytctbactmeseCreateDlg" widgetVar="PytctbactmeseCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePytctbactmeseTitle}">

            <h:form id="PytctbactmeseCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pytctbactmeseController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePytctbactmeseLabel_porcentajejec}" for="porcentajejec" />
                        <p:inputText id="porcentajejec" value="#{pytctbactmeseController.selected.porcentajejec}" title="#{myBundle.CreatePytctbactmeseTitle_porcentajejec}" required="true" requiredMessage="#{myBundle.CreatePytctbactmeseRequiredMessage_porcentajejec}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactmeseLabel_aprobdir}" for="aprobdir" />
                        <p:selectBooleanCheckbox id="aprobdir" value="#{pytctbactmeseController.selected.aprobdir}" title="#{myBundle.EditPytctbactmeseTitle_aprobdir}" required="true" requiredMessage="#{myBundle.EditPytctbactmeseRequiredMessage_aprobdir}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactmeseLabel_aprobugp}" for="aprobugp" />
                        <p:selectBooleanCheckbox id="aprobugp" value="#{pytctbactmeseController.selected.aprobugp}" title="#{myBundle.EditPytctbactmeseTitle_aprobugp}" required="true" requiredMessage="#{myBundle.EditPytctbactmeseRequiredMessage_aprobugp}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactmeseLabel_comentarios}" for="comentarios" />
                        <p:inputText id="comentarios" value="#{pytctbactmeseController.selected.comentarios}" title="#{myBundle.CreatePytctbactmeseTitle_comentarios}" required="true" requiredMessage="#{myBundle.CreatePytctbactmeseRequiredMessage_comentarios}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactmeseLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pytctbactmeseController.selected.fecharegistro}" title="#{myBundle.EditPytctbactmeseTitle_fecharegistro}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactmeseLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pytctbactmeseController.selected.observaciones}" title="#{myBundle.CreatePytctbactmeseTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreatePytctbactmeseRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactmeseLabel_pytctbactmespid}" for="pytctbactmespid" />
                        <p:selectOneMenu id="pytctbactmespid" value="#{pytctbactmeseController.selected.pytctbactmespid}" required="true" requiredMessage="#{myBundle.EditPytctbactmeseRequiredMessage_pytctbactmespid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pytctbactmespController.items}"
                                           var="pytctbactmespidItem"
                                           itemValue="#{pytctbactmespidItem}"
                                           itemLabel="#{pytctbactmespidItem.pytctbactmespid.toString()}"
                                           />
                            <f:converter binding="#{pytctbactmespConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pytctbactmeseController.saveNew}" value="#{myBundle.Save}" update="display,:PytctbactmeseListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PytctbactmeseCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PytctbactmeseCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
